import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from '@/store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import model from '@/plugins/modal'
import directive from "@/directive";
import './assets/css/global.css'
import echarts from 'echarts'


// 分页组件
import Pagination from "@/components/Pagination";
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree,getRandum } from "@/util/serverutil";
import { getDicts } from "@/api/dict/data";

Vue.use(ElementUI);
Vue.use(directive)


Vue.prototype.$model = model
Vue.prototype.parseTime = parseTime
Vue.prototype.addDateRange = addDateRange
Vue.prototype.resetForm = resetForm
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.handleTree = handleTree
Vue.prototype.getDicts = getDicts
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false



// 全局组件
Vue.component('Pagination', Pagination)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
